import backTop from "components/content/backtop/backTop.vue"

export const backTopMixin = {
  components:{
    backTop
  },
  data() {
    return{
 // 是否显示返回顶部
 isShowBackTop:false
    }
  },
  methods:{
    backClick(){
      this.$refs.scroll.backtop(0,0,500)
      // console.log('backtop');
    },
    demo(options){
      this.isShowBackTop = (-options.y) > 1000
    }
  }
  
}